using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.IO;
using QlyKinhDoanh.Utility;

namespace prjQlyKinhDoanh
{
    public partial class frmGiayChungNhanViewer : Form
    {
        string _sSoGCN;
        public frmGiayChungNhanViewer()
        {
            InitializeComponent();
        }

        public frmGiayChungNhanViewer(string sSoGCN)
        {
            InitializeComponent();
            _sSoGCN = sSoGCN;
        }

        private void frmGiayChungNhanViewer_Load(object sender, EventArgs e)
        {
            string[] paraName = new string[1];
            paraName[0] = "@sSoGCN";
            string[] paraValue = new string[1];
            paraValue[0] = _sSoGCN;

            string sReportFile = Declare.ReportPath + "rptGiayChungNhan.rpt";
            ReportUtility.LoadReportFile(sReportFile, crystalReportViewer1, paraName, paraValue);


        }


    }
}